/**
 * 最多的单词数
 *
 * @USER: Administrator
 * @DATE: 2024/9/30 下午7:35
 * @VERSION: 1.0.0
 */
public class LC2114 {
    public static void main(String[] args) {

    }

    public int mostWordsFound(String[] sentences) {
        int max = 0;
        for (String sentence : sentences) {
            int length = sentence.split(" ").length;
            if (length > max) {
                max = length;
            }
        }
        return max;
    }

}
